package com.thinkcms.seo;
import com.thinkcms.seo.seo.core.baidu.BaiDuEngine;
import org.junit.Test;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Map;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws UnsupportedEncodingException {
         int i=0;
         while (i<1){
             search();
             i+=1;
         }
    }

    public  static void search() throws UnsupportedEncodingException {
          Map<String,Boolean> res= BaiDuEngine.isRecord("http://www.lbcms.top/JavaScript/20200126/4061799427877109176.html");
          System.out.println(res.get("ok"));
    }

    @Test
    public static String  encod(String u) throws UnsupportedEncodingException {
        String url=URLEncoder.encode(u, "UTF-8").toString();
        System.out.println(url);
        return url;
    }
}
